package com.jsy.order.config;//package com.jsy.order.config;
//
//import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
//import org.springframework.context.annotation.Configuration;
//
//import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
//
//@Configuration//解决feign与controller加载路径冲突
//public class WebMvcRegistrationAdapter implements WebMvcRegistrations {
//    @Override
//    public RequestMappingHandlerMapping getRequestMappingHandlerMapping() {
//        return new MyRequestMappingHandlerMapping();
//    }
//    public class MyRequestMappingHandlerMapping extends RequestMappingHandlerMapping{
//
//        @Override
//        protected boolean isHandler(Class<?> beanType) {
////            return AnnotatedElementUtils.hasAnnotation(beanType, Controller.class) || AnnotatedElementUtils.hasAnnotation(beanType, RequestMapping.class)&&beanType.isInterface()==false;
//            return super.isHandler(beanType)&&beanType.isInterface()==false;
//        }
//    }
//}
